package io.renren.modules.aic.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.aic.service.BalanceDetailService;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 收支明细表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-03-30 15:44:18
 */
@RestController
@RequestMapping("aic/balancedetail")
public class BalanceDetailController {
	@Autowired
	private BalanceDetailService balanceDetailService;

	/**
	 * 列表
	 */
	@RequestMapping("/list")
	public R list(@RequestParam Map<String, Object> params) {
		PageUtils page = balanceDetailService.queryPage(params);
		return R.ok().put("page", page);
	}
}
